package com.eee.machine.dao.mapper;

import com.eee.machine.beans.TUser;
import com.eee.machine.beans.TUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface TUserMapper {
    long countByExample(TUserExample example);

    int deleteByExample(TUserExample example);

    int deleteByPrimaryKey(String userId);

    int insert(TUser record);

    int insertSelective(TUser record);

    List<TUser> selectByExample(TUserExample example);

    TUser selectByPrimaryKey(String userId);

    int updateByExampleSelective(@Param("record") TUser record, @Param("example") TUserExample example);

    int updateByExample(@Param("record") TUser record, @Param("example") TUserExample example);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    @Select("select * from t_user where phone = #{phone} and password = #{password}")
    @ResultMap(value = "com.eee.machine.dao.mapper.TUserMapper.BaseResultMap")
    TUser getUserByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);
}